package com.kefu.exam.model;

import java.io.Serializable;
import java.util.List;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author xy
 * @date 2022/02/28
 */
@Data
@TableName(value="exam_subject_answer")
@ApiModel(description = "答案表")
public class ExamSubjectAnswer implements Serializable{

	private static final long serialVersionUID = 1L;
    /**
     * 主键
     */
	@TableId(value="answer_id",type=IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String answerId;

    /**
     * 试题ID
     */
    @TableField(value="subject_id")
    @ApiModelProperty(value = "试题ID")
    private String subjectId;

    /**
     * 是否正确答案
     */
    @TableField(value="right_flag")
    @ApiModelProperty(value = "是否正确答案")
    private Integer rightFlag;

    /**
     * 排序
     */
    @TableField(value="answer_sort")
    @ApiModelProperty(value = "答案排序")
    private Integer answerSort;

    /**
     * 答案状态
     */
    @TableField(value="answer_status")
    @ApiModelProperty(value = "答案状态")
    private Integer answerStatus;

    /**
     * 答案内容
     */
    @TableField(value="answer_content")
    @ApiModelProperty(value = "答案内容")
    private String answerContent;

    /**
     * 创建时间
     */
    @TableField(value="create_time")
    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    /**
     * 创建人
     */
    @TableField(value="create_user")
    @ApiModelProperty(value = "创建人")
    private String createUser;

    /**
     * 创建人姓名
     */
    @TableField(value="create_name")
    @ApiModelProperty(value = "创建人姓名")
    private String createName;

    /**
     * 子问题
     */
    @TableField(exist = false)
    @ApiModelProperty(value = "子问题id")
    private List<ExamSubject> sonSubjectId;
}